package com.enlink.didu.dao.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enlink.didu.dao.entity.IdeaRoleMenu;

@Service
public class RoleAndRoleMenuService {

	@Autowired
	private IIdeaRoleMenuService roleMenuService;

	@Transactional
	public void roleMenuBatchSave(List<IdeaRoleMenu> roleMenuList) {
		roleMenuService.saveBatch(roleMenuList);
	}

	@Transactional
	public void roleMenuBatchSave2(List<IdeaRoleMenu> roleMenuList) {
		for (IdeaRoleMenu roleMenu : roleMenuList) {
			roleMenuService.save(roleMenu);
		}
	}
}
